<?php

namespace app\api\validate;

use think\Validate;

class Recharge extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'payment_amount'  =>  'require|integer|gt:0'

    ];
    /**
     * 提示消息
     */
    protected $message = [
        'payment_amount.require'  =>  '請選擇或者輸入充值數量',
        'payment_amount.integer'  =>   '充值金額必須是整數',
        'payment_amount.gt'  =>   '充值金額不能小於等於零'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'recharge_integral'  => ['payment_amount'],
        'edit' => [],
    ];
    
}
